<?php


namespace app\erp\model;


use think\Model;

class MenuAuthdb extends Model
{
    protected $pk = 'id';
    protected $name = 'menu_auth';
    public $param = [];

    protected function base($query)
    {
        if(isset($this->param['vars']) && $this->param['vars']){
            $query->whereLike('vars','%'.$this->param['vars'].'%');
        }
    }
}